package com.huonan.jb.tools.sftpuse;

import com.huonan.utils.SftpUtil;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

@Slf4j
public class AppUse {
    @SneakyThrows
    public static void main(String[] args) {
        String path= SftpCommandArgs.getArgs(args);
        String localDir = SftpCommandArgs.getOptionValue(args, "local_dir");
        List<String> list = SftpUtil.lsFiles(path);
        System.out.println(localDir);
        System.out.println(list);
    }
}
